﻿<!DOCTYPE>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <title>自动排产</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
    <style type="text/css">
        .linkbutton{margin-left:20px;width:85px;}
         table tr td{padding:0px 5px}
        .ApsChoose{border:1px solid #ddd;width: 220px;height: 80px;padding-left: 20px}
        .panel-header{padding:1px 1px 1px 10px;background: #c7def4;}
    </style>
</head>
<body>
 <div class="panelSection">    
        <div class="easyui-panel " title="查询区域" style="padding:3px;width: 100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
        <form id="searchForm" style="margin-bottom: 2px;">
               <table>
                <tr class="divLabel">
                    <td>任务单号：</td>
                    <td>发动机号：</td>
                    <td>订单号：</td>
                    <td>任务单类型：</td>
                    <td>大小件目录：</td>
                    <td>计划开始时间</td>
                    <td></td>
                    <td>计划结束时间</td>
                    
                </tr>
                <tr>
                    <td><input id="txtContainer" class="easyui-textbox" name="ContainerNo" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtProduct" class="easyui-textbox" name="Machine" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtMfgorderName" class="easyui-textbox" name="MfgOrdername" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="OrderType" class="easyui-textbox" name="WorkFlowType" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="BigSmall" class="easyui-textbox" name="HasBom" type="text" style="width: 120px; height: 22px" /></td>
                    <td><input id="txtPlanStartTime" type="text"  name="PlanStartTime" class="easyui-datebox" style="width: 110px; height: 22px"/></td>
                    <td>-</td>
                    <td><input id="txtPlanEndTime" type="text"  name="PlanEndTime" class="easyui-datebox" style="width: 110px; height: 22px"/></td>                                      
                    <td><a href="javascript:void(0)" id="btnSearch" class="easyui-linkbutton"   onclick="page.searchData()">查询</a>
                    <a href="javascript:void(0)" id="btnReset" class="easyui-linkbutton"   onclick="page.searchReset()">重置</a>
                    </td>
                </tr>
            </table>
        </form> 
        </div> 
    </div> 
      <div class="panelSection">    
        <div class="easyui-panel " title="任务单信息" style="padding:3px;width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
        <div class="easyui-layout" style="width:100%;height:350px;">
		    <div data-options="region:'center'" title="">
                <table id="gdApsPool" style="height:313px;width:100%"></table>
                     <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                         layout:['first','prev','next','last','manual','info'],              
                            total: 0,
                            showPageList: false,
                            showPageInfo: false,
                            showRefresh: false,
                            afterPageText:'共&nbsp{pages}&nbsp页',
                             buttons:[{
                                    iconCls:'',
                                    text:'Go',
                                    id:'pageGo'
                            }]
                        ">
                            </div>
		    </div>
            <div data-options="region:'east'" title="排产信息" style="width:25%;">
			    <table id="gdContainerAps" class="easyui-datagrid" style="width: 100%;"data-options="rownumbers:true">
                </table>
		    </div>
	</div>
        </div>
      </div>
      <div class="panelSection" id="EditorpanelSection">    
        <div class="easyui-panel " title="选择排产策略" style="padding:3px;width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
            <form id="EditorForm">
                  <table class="tabel" cellpadding="5">
	    		    <tr class="divLabel">
	    			    <td >Ⅰ级排产策略</td>
                        <td >Ⅱ级排产策略</td>
                        <td >Ⅲ级排产策略</td>
                        <td >Ⅳ级排产策略</td>
	    		    </tr>
	    		    <tr class="divLabel">
                        <td><div class="ApsChoose">
                         <p style="margin-right: 15px;"><input class="easyui-radiobutton" id="Level0" labelWidth="150px" labelPosition="after" name="Level_1" value="0"  label="订单优先级策略" data-options="onChange:page.TypeChange"/></p>
                            <input class="easyui-radiobutton"  id="Level1"  labelWidth="150px" labelPosition="after" name="Level_1" value="1" label="齐套策略"  data-options="onChange:page.TypeChange"/>
                        </div></td>
                        <td><div class="ApsChoose">
                             <p style="margin-right: 15px;"><input class="easyui-radiobutton" id="Level2" labelWidth="150px" labelPosition="after" name="Level_2" value="2"  label="工序齐套策略" data-options="onChange:page.TypeChange"/></p>
                            <input class="easyui-radiobutton"  id="Level3"  labelWidth="150px" labelPosition="after" name="Level_2" value="3" label="瓶颈工序策略"  data-options="onChange:page.TypeChange" />
                        </div></td>
                        <td><div class="ApsChoose">
                         <p style="margin-right: 15px;"><input class="easyui-radiobutton" id="Level4" labelWidth="150px" labelPosition="after" name="Level_3" value="4"  label="倒排" /></p>
                            <input class="easyui-radiobutton"  id="Level5"  labelWidth="150px" labelPosition="after" name="Level_3" value="5" label="正排"  />
                        </div></td>
                        <td><div class="ApsChoose">
                         <p style="margin-right: 15px;"><input class="easyui-radiobutton" id="Level6" labelWidth="150px" labelPosition="after" name="Level_4" value="6"  label="负载均衡策略" /></p>
                            <input class="easyui-radiobutton"  id="Level7"  labelWidth="150px" labelPosition="after" name="Level_4" value="7" label="空闲时间优先策略"  />
                        </div></td>
	    			</tr>
	    	    </table>
              </form>
      </div>
      </div>
      <div class="panelSection">    
        <div class="easyui-panel " title="按钮区域" style="padding:3px;width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
            <div style="margin:15px 0px">
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.addApsPool();">加入排产池</a>
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.removeApsPool();">移除排产池</a>
                  <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.apsLmCalculate();">APS排产</a>
            </div>
      </div>
      </div>
      <div id="statusMessage" style="font-size: 14px; height: 40px"></div>
     <!--任务单选择 -->
     <div id="orderSelect"></div>
     <div id="dg"></div>
</body>
</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/json2.js" type="text/javascript"></script>
<script type="text/javascript" src="/InSiteWebApplication/Content/Easyui/datagrid-groupview.js"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ZsJs/ZSApsPage.js?V=new Date().getTime()" type="text/javascript"></script>
